Optimal. Leaf size=59 \[ -\frac {a^3 B}{3 x^3}-\frac {3 a^2 b B}{2 x^2}-\frac {A (a+b x)^4}{4 a x^4}-\frac {3 a b^2 B}{x}+b^3 B \log (x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {78, 43} \begin {gather*} -\frac {3 a^2 b B}{2 x^2}-\frac {a^3 B}{3 x^3}-\frac {A (a+b x)^4}{4 a x^4}-\frac {3 a b^2 B}{x}+b^3 B \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 78
Rubi steps
\begin {align*} \int \frac {(a+b x)^3 (A+B x)}{x^5} \, dx &=-\frac {A (a+b x)^4}{4 a x^4}+B \int \frac {(a+b x)^3}{x^4} \, dx\\ &=-\frac {A (a+b x)^4}{4 a x^4}+B \int \left (\frac {a^3}{x^4}+\frac {3 a^2 b}{x^3}+\frac {3 a b^2}{x^2}+\frac {b^3}{x}\right ) \, dx\\ &=-\frac {a^3 B}{3 x^3}-\frac {3 a^2 b B}{2 x^2}-\frac {3 a b^2 B}{x}-\frac {A (a+b x)^4}{4 a x^4}+b^3 B \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 70, normalized size = 1.19 \begin {gather*} -\frac {a^3 (3 A+4 B x)+6 a^2 b x (2 A+3 B x)+18 a b^2 x^2 (A+2 B x)+12 A b^3 x^3-12 b^3 B x^4 \log (x)}{12 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {(a+b x)^3 (A+B x)}{x^5} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.14, size = 75, normalized size = 1.27 \begin {gather*} \frac {12 \, B b^{3} x^{4} \log \relax (x) - 3 \, A a^{3} - 12 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} - 18 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} - 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.23, size = 73, normalized size = 1.24 \begin {gather*} B b^{3} \log \left ({\left | x \right |}\right ) - \frac {3 \, A a^{3} + 12 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + 18 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 76, normalized size = 1.29 \begin {gather*} B \,b^{3} \ln \relax (x )-\frac {A \,b^{3}}{x}-\frac {3 B a \,b^{2}}{x}-\frac {3 A a \,b^{2}}{2 x^{2}}-\frac {3 B \,a^{2} b}{2 x^{2}}-\frac {A \,a^{2} b}{x^{3}}-\frac {B \,a^{3}}{3 x^{3}}-\frac {A \,a^{3}}{4 x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.04, size = 72, normalized size = 1.22 \begin {gather*} B b^{3} \log \relax (x) - \frac {3 \, A a^{3} + 12 \, {\left (3 \, B a b^{2} + A b^{3}\right )} x^{3} + 18 \, {\left (B a^{2} b + A a b^{2}\right )} x^{2} + 4 \, {\left (B a^{3} + 3 \, A a^{2} b\right )} x}{12 \, x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.35, size = 71, normalized size = 1.20 \begin {gather*} B\,b^3\,\ln \relax (x)-\frac {x^2\,\left (\frac {3\,B\,a^2\,b}{2}+\frac {3\,A\,a\,b^2}{2}\right )+x\,\left (\frac {B\,a^3}{3}+A\,b\,a^2\right )+\frac {A\,a^3}{4}+x^3\,\left (A\,b^3+3\,B\,a\,b^2\right )}{x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 1.43, size = 80, normalized size = 1.36 \begin {gather*} B b^{3} \log {\relax (x )} + \frac {- 3 A a^{3} + x^{3} \left (- 12 A b^{3} - 36 B a b^{2}\right ) + x^{2} \left (- 18 A a b^{2} - 18 B a^{2} b\right ) + x \left (- 12 A a^{2} b - 4 B a^{3}\right )}{12 x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________